//package com.allwees.data.dataport.module.useraction.entity;
//
//import com.allwees.core.common.util.reflect.PojoUtil;
//import com.allwees.data.dataport.module.base.bo.BaseLogBo;
//import com.allwees.data.dataport.module.base.doc.EsDoc;
//import com.allwees.data.dataport.module.useraction.constant.EEdmActionType;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
//import lombok.experimental.Accessors;
//import org.springframework.data.annotation.Id;
//import org.springframework.data.elasticsearch.annotations.Document;
//import org.springframework.data.elasticsearch.annotations.Field;
//import org.springframework.data.elasticsearch.annotations.FieldType;
//
//@Data
//@EqualsAndHashCode(callSuper=false)
//@Accessors(chain = true)
//@Document(indexName = "ua_edm_log", type = "edm_log", shards = 4, replicas = 1)
//public class EdmLog extends BaseLogBo implements EsDoc {
//    @Id
//    private String uuid;
//
//	/** 行为类型 */
//	@Field(store = true,type = FieldType.Keyword)
//	private EEdmActionType uaType;
//
//	/** 模板id */
//	@Field(store = true,type = FieldType.Keyword)
//	private String templateId;
//
//    /** 发送批次号 */
//	@Field(store = true,type = FieldType.Keyword)
//    private String batchNo;
//
//	/** 被点击Url */
//	@Field(store = true,type = FieldType.Keyword)
//	private String clickUrl;
//
//	/** 被点击位置id */
//	@Field(store = true,type = FieldType.Keyword)
//	private String clickPosNo;
//
//    public static EdmLog of(BaseLogBo bo) {
//    	return PojoUtil.copy(new EdmLog(), bo);
//    }
//}
